﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Management;
using System.Configuration;

namespace MNF.DataAccess
{
    /// <summary>
    /// 数据操作层工具类
    /// </summary>
    public class DBUtils
    {
        /// <summary>
        /// 数据库连接字符串
        /// </summary>
        public static string DbConnectionString = ConfigurationManager.ConnectionStrings["DbConnectionString"].ConnectionString;
        /// <summary>
        /// 数据库提供程序名称
        /// </summary>
        public static string DbProviderName = ConfigurationManager.ConnectionStrings["DbConnectionString"].ProviderName;
    }

    /// <summary>
    /// 数据库连接类型定义
    /// </summary>
    public enum DataBaseType
    {
        Oracle,
        Sqlserver,
        Access,
        Bd2,
        MySql,
        SQLite
    }
}
